import request from '@/utils/request'


/**打印序列号 */
export function printSerialByCheckIdCheckPositionId(data) {
  return request({
    url: `/distribution/stockCheck/printSerialByCheckIdCheckPositionId`,
    method: 'post',
    data
  })
}

/**获取库位-sku */
export function getStockCheckPositionUnaudited(checkId) {
  return request({
    url: `/distribution/stockCheck/getStockCheckPositionUnaudited/${checkId}`,
  })
}

/**未审核的盘点单 */
export function getStockCheckUnaudited() {
  return request({
    url: '/distribution/stockCheck/getStockCheckUnaudited',
  })
}

/**获取扫码序列号个数 */
export function getNumByCheckPositionId(params) {
  return request({
    url: `/distribution/stockCheck/getNumByCheckPositionId`,
    params
  })
}


/**查询已存在库位数量，信息 */
export function getNumInfoByCheckPositionId(params) {
  return request({
    url: `/distribution/stockCheck/getNumInfoByCheckPositionId`,
    params
  })
}


/**盘点生成序列号 */
export function createStockCheckPositionSerial(data) {
  return request({
    url: `/distribution/stockCheck/createStockCheckPositionSerial`,
    method: 'POST',
    data
  })
}

/**盘点查询新建二维码序列号列表 */
export function getStockCheckPositionSerialList(params) {
  return request({
    url: `/distribution/stockCheck/getStockCheckPositionSerialList`,
    params
  })
}

/**盘点查询新建二维码序列号列表 (不分页)*/
export function getStockCheckPositionSerialListNoPage(params) {
  return request({
    url: `/distribution/stockCheck/getStockCheckPositionSerialListNoPage`,
    params
  })
}


/**删除新建二维码序列号*/
export function deleteStockCheckPositionSerialById(id) {
  return request({
    url: `/distribution/stockCheck/deleteStockCheckPositionSerialById/${id}`,
    method: 'delete'
  })
}


/**设置过期时间*/
export function setExpiredTime(data) {
  return request({
    url: `/distribution/stockCheck/setExpiredTime`,
    method: 'post',
    data
  })
}